//
//  GHBaseViewController.swift
//  KYC2C
//
//  Created by Guanghui Liao on 12/15/17.
//  Copyright © 2017 liaoworking. All rights reserved.
//

import UIKit
//所有视图控制器应该继承的积累  里面放一些基本方法
class GHBaseViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        view.backgroundColor = AppBGColor
        // Do any additional setup after loading the view.
        setNavBar()
    }

    func setNavBar() {
    navigationController?.navigationBar.setBackgroundImage(UIImage(named:"navigationBar"), for: .default)

        navigationController?.navigationBar.shadowImage = UIImage();
        navigationController?.navigationBar.titleTextAttributes = {[
            NSAttributedStringKey.foregroundColor: WHITE_COLOR,
            NSAttributedStringKey.font: UIFont(name: "PingFangSC-Regular", size: 19.0)!
            ]}()
    }
    
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }

}
